package com.cfg;

/**
 * @author <a href="15226116300@163.com">王廷俊</a>
 * @Description
 * @Date 2024-11-12
 */
public class ServiceUtil {
    
    public ServiceUtil() {
    }
    
    public static <T extends Service> T getService(Class<T> var0) {
        try {
            return EngineConfigurationImpl.getInstance().getServiceFactory().createService(var0);
        } catch (IllegalAccessException var2) {
            System.out.println("获取service实例失败" + var2);
        } catch (InstantiationException var3) {
            System.out.println("获取service实例失败" + var3);
        }
        
        return null;
    }
    
    
}
